import request from "../../request.js"

// 查询订单列表
function findAllOrders(data){
	return request({
		url:`/lejuClient/order/findAllOrders`,
		data,
		// method:"post",
		
	})
}

// 点击确认收货
function receiveDone(data){
	return request({
		url:`/lejuClient/order/receiveDone`,
		data,
		method:"post",
		
	})
}

// 获取 退单列表 
function orderReturnApplys(data){
	return request({
		url:`/lejuClient/orderReturn/orderReturnApplys`,
		data,
		// method:"post",
		
	})
}

// 获取 退单明细
// function orderReturn(id){
// 	return request({
// 		url:`/lejuClient/orderReturn/${id}`,
// 		// data,
// 		// method:"post",
		
// 	})
// }

// 获取退单的地址
function getCompanyAddrss(){
	return request({
		url:`/lejuClient/orderReturn/getCompanyAddrss`,
		// data,
		// method:"post",
		
	})
}

// 申请退单
function addOrderReturnApply(data){
	return request({
		url:`/lejuClient/orderReturn/addOrderReturnApply`,
		data,
		method:"post",
		
	})
}





export {
	findAllOrders,
	receiveDone,
	orderReturnApplys,
	// orderReturn
	getCompanyAddrss,
	addOrderReturnApply
}